package com.ruoyi.applet.order.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 订单商品对象 ord_order_commodity
 * @author ruoyi
 * @date 2025-01-02
 */
public class OrdOrderCommodity extends BaseEntity {
    
    private static final long serialVersionUID = 1L;
    
    /**  */
    private Long id;
    
    /** 订单id */
    @Excel(name = "订单id")
    private Long orderId;
    
    /** 微信用户id */
    @Excel(name = "微信用户id")
    private Long wxUserId;
    
    /** 产品id */
    @Excel(name = "产品id")
    private Long productId;
    
    /** 规格id */
    @Excel(name = "规格id")
    private Long productSpecificationsId;
    
    /** 分类id */
    @Excel(name = "分类id")
    private Long productCategoriesId;
    
    /** 编码 */
    @Excel(name = "编码")
    private String encode;
    
    /** 标题 */
    @Excel(name = "标题")
    private String title;
    
    /** 描述 */
    @Excel(name = "描述")
    private String description;
    
    /** 图片地址，集合JSON，第一个是封面 */
    @Excel(name = "图片地址，集合JSON，第一个是封面")
    private String picturesPath;
    
    /** 详情 */
    @Excel(name = "详情")
    private String details;
    
    /** 附加信息 */
    @Excel(name = "附加信息")
    private String additionalInfo;
    
    /** 规格名称 */
    @Excel(name = "规格名称")
    private String specificationsName;
    
    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;
    
    /** 单位 */
    @Excel(name = "单位")
    private String unit;
    
    /** 数量 */
    @Excel(name = "数量")
    private Long quantity;
    
    public Long getId() {
        return id;
    }
    
    public void setId(Long id) {
        this.id = id;
    }
    
    public Long getOrderId() {
        return orderId;
    }
    
    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }
    
    public Long getWxUserId() {
        return wxUserId;
    }
    
    public void setWxUserId(Long wxUserId) {
        this.wxUserId = wxUserId;
    }
    
    public Long getProductId() {
        return productId;
    }
    
    public void setProductId(Long productId) {
        this.productId = productId;
    }
    
    public Long getProductSpecificationsId() {
        return productSpecificationsId;
    }
    
    public void setProductSpecificationsId(Long productSpecificationsId) {
        this.productSpecificationsId = productSpecificationsId;
    }
    
    public Long getProductCategoriesId() {
        return productCategoriesId;
    }
    
    public void setProductCategoriesId(Long productCategoriesId) {
        this.productCategoriesId = productCategoriesId;
    }
    
    public String getEncode() {
        return encode;
    }
    
    public void setEncode(String encode) {
        this.encode = encode;
    }
    
    public String getTitle() {
        return title;
    }
    
    public void setTitle(String title) {
        this.title = title;
    }
    
    public String getDescription() {
        return description;
    }
    
    public void setDescription(String description) {
        this.description = description;
    }
    
    public String getPicturesPath() {
        return picturesPath;
    }
    
    public void setPicturesPath(String picturesPath) {
        this.picturesPath = picturesPath;
    }
    
    public String getDetails() {
        return details;
    }
    
    public void setDetails(String details) {
        this.details = details;
    }
    
    public String getAdditionalInfo() {
        return additionalInfo;
    }
    
    public void setAdditionalInfo(String additionalInfo) {
        this.additionalInfo = additionalInfo;
    }
    
    public String getSpecificationsName() {
        return specificationsName;
    }
    
    public void setSpecificationsName(String specificationsName) {
        this.specificationsName = specificationsName;
    }
    
    public BigDecimal getPrice() {
        return price;
    }
    
    public void setPrice(BigDecimal price) {
        this.price = price;
    }
    
    public String getUnit() {
        return unit;
    }
    
    public void setUnit(String unit) {
        this.unit = unit;
    }
    
    public Long getQuantity() {
        return quantity;
    }
    
    public void setQuantity(Long quantity) {
        this.quantity = quantity;
    }
    
    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("orderId", getOrderId())
                .append("wxUserId", getWxUserId())
                .append("productId", getProductId())
                .append("productSpecificationsId", getProductSpecificationsId())
                .append("productCategoriesId", getProductCategoriesId())
                .append("encode", getEncode())
                .append("title", getTitle())
                .append("description", getDescription())
                .append("picturesPath", getPicturesPath())
                .append("details", getDetails())
                .append("additionalInfo", getAdditionalInfo())
                .append("specificationsName", getSpecificationsName())
                .append("price", getPrice())
                .append("unit", getUnit())
                .append("quantity", getQuantity())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
